Page info

The Page Info control is intended to add page numbers and system information (the current date and time or the current user name) into your report. As with many other controls, you can format this control's content.

Page info

In the Property Grid, the page info control's properties are divided into the following groups.

Appearance

Property Description
Background Color Specifies the background color for the control.
Borders, Border Color, Border Dash Style and Border Width Specify border settings for the control.
Font Specifies the font settings for the control.
Foreground Color Specifies the text color for the control.
Formatting Rules Opens the Formatting Rules Editor, allowing you to choose which rules should be applied to the control during report generation, and define the precedence of the applied rules. To learn more on this, see Conditionally change a control's appearance.
Padding Specifies indent values which are used to render the contents of the control.
Style Priority Allows you to define the priority of various style elements (such as background color, border color, etc.). For more information on style inheritance, see Understand styles concepts.
Styles This property allows you to define odd and even styles for the control, as well as to assign an existing style to the control (or a newly created one). For more information on style inheritance, see Understand styles concepts.
Text Alignment Allows you to change the alignment of the control's text.

Behavior

Property Description
Anchor Horizontally Specifies the horizontal anchoring style of the control, so that after page rendering it stays attached to the left control, right control, or both.
Anchor Vertically Specifies the vertical anchoring style of the control, so that after page rendering it stays attached to the top control, bottom control, or both.
Format This property allows you to specify the format string for the text displayed in the control. When you click on the ellipsis button, you will see the Format String Editor window that will select the predefined format or customize it as needed. For more information about this, see Change value formatting of report elements.
Page Info You can select the type of information displayed in the control (see the table below).
Running Band

Specifies the name of the band, from which the page info gathers information. This allows you to implement page numbering independently for the report and its groups (see Add page numbers for groups).

By default, this property is not set to any value, meaning that the entire report is being taken into account.

Scripts This property contains events, which you can handle with the required scripts. For more information on scripting, see Handle events via scripts.
Start Page Number Here you can set the start number for page numbering.
Visible Specifies whether the control should be visible in Print Preview.
Word Wrap When this property is set to Yes, text contained in the control is wrapped to the next line if it doesn't fit the line or comes across a newline character. If this property is set to No, the text in this case will be displayed on the same line until a newline character is entered.

The table below shows the available information types.

Type Description
None Displays an empty control.
Page Number The string, specified by the Format property, is displayed. The {0} combination in the string is replaced with the current page number.
"Current of Total"/ "Number of Total" Page Numbers The string, specified by the Format property, is displayed. The {0} combination in the string is replaced with the current page number, the {1} combination - with a total number of pages in the report. To display the typical "Page 1 of 11" text, use the format string "Page {0} of {1}".
Page Number (Roman, Lowercase) The current page number is displayed using Roman numerals in lower case.
Page Number (Roman, Uppercase) The current page number is displayed using Roman numerals in upper case.
Current Date and Time The string, specified by the Format property, is displayed. The {0:[format]} combination is replaced with the current system date and time formatted according to the [format] string. Use the Format String Editor of the Format property (see below) to select or construct the proper string.
User Name The name of the current user, which was used to log into the operating system, is displayed.
Page Count / Total The total number of pages in the report is displayed.

Data

Property Description
(Data Bindings) This property allows you to bind some of the control's properties (Bookmark, NavigateURL and Tag) to a data field obtained from the report's data source, and to apply a format string to it.
Tag

This property allows you to add some additional information to the control; for example its id, by which it can be then accessible via scripts.

The Tag property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property and in the Tag.Binding drop-down selector, select the required data field.

Design

Property Description
(Name) Determines a control's name, by which it can be accessed in the Report Explorer, Property Grid or via scripts.

Layout

Property Description
Location Specifies the control's location, in report measurement units.
Size Specifies the control's size, in report measurement units.
Snap Line Margin Specifies the margin (in report measurement units), which is to be preserved around the control when it is aligned using Snap Lines, or when other controls are aligned next to it.

Navigation

Property Description
Bookmark and Bookmark Parent

These properties are intended for the creation of a hierarchical structure within a report called a document map. For an explanation and help, see Add bookmarks.

The Bookmark property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property and in the Bookmark.Binding drop-down selector, select the required data field.

Navigate URL and Target

Use the Navigate URL property to specify a URL for web browser navigation when a user clicks on the control. The web browser displays a page in a window or a frame as specified by the Target property. Note that a URL should have an appropriate prefix (e.g. "http://"). You can create cross-references within the report by assigning the name of the target control to the Navigate URL property, and setting the Target property to "_self". For more information, see Create hyperlinks.

The Navigate URL property can be bound to a data field obtained from the data source. To do this, expand the (Data Bindings) property and in the Navigate URL.Binding drop-down selector, select the required data field.